package io.sdph.order.model;

import io.sdph.documents.model.Invoice;
import io.sdph.products.model.Product;

import java.util.Map;

/**
 * Bean reprezentujacy zamowienie.
 * 
 * @author Adrian Szwajkowski, Tomasz Korpowski
 * @since 0.0.1
 */
public class Order {
    
    // Numer zamówienia.
    private final String number;
    // Kolekcja produktów wraz ich ilocami.
    private Map<Product, Long> products;
    // Kolekcja wlasciwosci zamowienia.
    private Map<String, String> properties;
    // Faktura do zamowienia.
    private Invoice invoice;
    
    public Order(String number)
    {
        this.number = number;
    }

    public String getNumber() {
        return number;
    }

    public Map<Product, Long> getProducts() {
        return products;
    }

    public void setProducts(Map<Product, Long> products) {
        this.products = products;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }

    public Invoice getInvoice() {
        return invoice;
    }

    public void setInvoice(Invoice invoice) {
        this.invoice = invoice;
    }
}
